.class public Lrexsee/multimedia/SurfaceDialog;
.super Lrexsee/core/widget/DivDialog;
.source "SurfaceDialog.java"


# instance fields
.field public surfaceView:Landroid/view/SurfaceView;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;Ljava/lang/String;)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;
    .param p2, "style"    # Ljava/lang/String;

    .prologue
    const/4 v0, 0x0

    .line 14
    invoke-direct {p0, p1, v0, p2}, Lrexsee/core/widget/DivDialog;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;)V

    .line 11
    iput-object v0, p0, Lrexsee/multimedia/SurfaceDialog;->surfaceView:Landroid/view/SurfaceView;

    .line 15
    return-void
.end method


# virtual methods
.method public start(Landroid/view/SurfaceHolder$Callback;)V
    .locals 4
    .param p1, "callback"    # Landroid/view/SurfaceHolder$Callback;

    .prologue
    const/4 v3, 0x1

    const/4 v2, -0x1

    .line 18
    invoke-super {p0}, Lrexsee/core/widget/DivDialog;->start()V

    .line 19
    new-instance v0, Landroid/view/SurfaceView;

    iget-object v1, p0, Lrexsee/multimedia/SurfaceDialog;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/multimedia/SurfaceDialog;->surfaceView:Landroid/view/SurfaceView;

    .line 20
    iget-object v0, p0, Lrexsee/multimedia/SurfaceDialog;->surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v0}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v0

    invoke-interface {v0, p1}, Landroid/view/SurfaceHolder;->addCallback(Landroid/view/SurfaceHolder$Callback;)V

    .line 21
    iget-object v0, p0, Lrexsee/multimedia/SurfaceDialog;->surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v0}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v0

    const/4 v1, 0x3

    invoke-interface {v0, v1}, Landroid/view/SurfaceHolder;->setType(I)V

    .line 22
    iget-object v0, p0, Lrexsee/multimedia/SurfaceDialog;->surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v0}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v0

    invoke-interface {v0, v2, v2}, Landroid/view/SurfaceHolder;->setFixedSize(II)V

    .line 23
    iget-object v0, p0, Lrexsee/multimedia/SurfaceDialog;->surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v0, v3}, Landroid/view/SurfaceView;->setFocusable(Z)V

    .line 24
    iget-object v0, p0, Lrexsee/multimedia/SurfaceDialog;->surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v0, v3}, Landroid/view/SurfaceView;->setFocusableInTouchMode(Z)V

    .line 25
    iget-object v0, p0, Lrexsee/multimedia/SurfaceDialog;->surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v0}, Landroid/view/SurfaceView;->requestFocus()Z

    .line 26
    iget-object v0, p0, Lrexsee/multimedia/SurfaceDialog;->surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v0}, Landroid/view/SurfaceView;->requestLayout()V

    .line 27
    iget-object v0, p0, Lrexsee/multimedia/SurfaceDialog;->surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v0}, Landroid/view/SurfaceView;->invalidate()V

    .line 28
    iget-object v0, p0, Lrexsee/multimedia/SurfaceDialog;->surfaceView:Landroid/view/SurfaceView;

    invoke-virtual {p0, v0}, Lrexsee/multimedia/SurfaceDialog;->addChild(Landroid/view/View;)V

    .line 29
    return-void
.end method
